package com.wc.AlgoOJ_train.train1.c0.A008;

import java.util.Scanner;

/**
 * @Author congege
 * @Description 数值统计
 * http://43.138.190.70:8888/p/A008
 * @Date Created in 2023/12/24-21:35
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            if (n == 0) {
                break;
            }
            int positive = 0;
            int zero = 0;
            int negative = 0;
            while (n-- > 0) {
                double num = sc.nextDouble();
                if (num < 0) {
                    negative++;
                } else if (num == 0) {
                    zero++;
                } else {
                    positive++;
                }
            }
            System.out.println(negative + " " + zero + " " + positive);
        }
    }
}
